#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

int
main(int argc, char **argv)
{
	int x = 0, y = 0, count;
	int dir_x = 1, dir_y = -1;
	bool horizontally = true;

	scanf("%d", &count);

	while (count-- > 0) {
		printf("%d %d\n", x, y);

		if (horizontally) {
			x += dir_x;
		} else if (!horizontally) {
			y += dir_y;
		}

		if ((abs(x) >= abs(y) && horizontally && y >= 0) || (abs(x) > abs(y) && horizontally && y < 0)) {
			horizontally = false;
			dir_y *= -1;
		} else if (abs(y) >= abs(x) && !horizontally) {
			horizontally = true;
			dir_x *= -1;
		}
	}

	return 0;
}
